import buildingList from '../list/building_list.vue'
import propertyList from '../list/property_list.vue'
export default {
    name: "index",
    data() {
        return {
            activeName: 'first',
            current: ''
        }
    },
    methods: {
        handleClick(tab, event) {
        }
    },
    components: {
        buildingList,
        propertyList
    },
    mounted() {
        this.current = sessionStorage.getItem("current")
    },
    watch: {
        current() {
            if (this.current === '20') {
                this.activeName = 'second'
            } else {
                this.activeName = 'first'
            }
        }
    }
}
